/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package laba4;

//import interfaces.task4.CollectionUtils;
import java.util.ArrayList;
import java.util.Collection;
//import org.apache.commons.collections.CollectionUtils;

/**
 *
 * @author yakimovich
 */
public class Tessstttttt {

    public static void main(String[] args) {

        MapUtilsImpl mapU = new MapUtilsImpl();

        Collection a = new ArrayList();
        Collection b = new ArrayList();
        a.add(1);
        a.add(1);
        a.add(1);
        a.add(2);


        b.add(1);
        b.add(1);
        b.add(2);
        b.add(3);
        b.add(3);
        b.add(5);
        System.out.println(a);
        System.out.println(b);

//        System.out.println(org.apache.commons.collections.CollectionUtils.union(a, b));
//        System.out.println(org.apache.commons.collections.CollectionUtils.intersection(a, b));

        CollectionUtilsImpl cuMy = new CollectionUtilsImpl();
        System.out.println(cuMy.union(a, b));
        System.out.println(cuMy.intersection(a, b));
        System.out.println(cuMy.intersectionWithoutDuplicate(null, b));


        System.out.println("**********************");
        System.out.println(mapU.findThrees("123"));
        System.out.println("*********************");
        System.out.println(mapU.findThrees("1234"));
        System.out.println("*********************");
        System.out.println(mapU.findThrees("1234 123"));
        System.out.println("*********************");
        System.out.println(mapU.findThrees("1234 123_234"));
        System.out.println("*********************");
        System.out.println(mapU.findThrees("1234 123_234*12"));
        System.out.println("*********************");
    }
}
